package org.anderground.editor.edits;

import org.anderground.core.model.Station;
import org.anderground.core.util.Coord;

/**
 * @author Eldar Abusalimov
 */
public class SetStationLocationAction extends MoveStationLocationAction {

	/**
	 * @param x
	 * @param y
	 * @param station
	 */
	public SetStationLocationAction(int x, int y, Station station) {
		super(x - station.getLocation().getX(), y
				- station.getLocation().getY(), station);
	}

	/**
	 * @param location
	 * @param station
	 */
	public SetStationLocationAction(Coord location, Station station) {
		this(location.getX(), location.getY(), station);
	}

}
